<?php

require('header.php');
require('table_des_matieres.php');

if (!empty($goods))
{

	foreach ($goods as $good)
	{
		echo '<fieldset>
				<legend>'.$good->nom.'</legend>
				<table>
					<tr>
						<td class="locationLegend">'.$language[$_SESSION['lang']]["Description"].' :</td>
						<td>'.$good->description.'</td>
					</tr>
					<tr>
						<td class="locationLegend">'.$language[$_SESSION['lang']]["Address"].' :</td>
						<td>'.$good->numero.' '.$good->rue_1.$good->rue_2.$good->rue_3.' '.$good->cp.' '.$good->ville.' '.$good->pays.'</td>
					</tr>
					<tr>
						<td class="locationLegend">'.$language[$_SESSION['lang']]["Capacity"].' :</td>
						<td>'.$good->capacite.' '.$language[$_SESSION['lang']]["People"].'</td>
					</tr>
					<tr>
						<td class="locationLegend">'.$language[$_SESSION['lang']]["Category"].' :</td>
						<td>'.$good->categorie.'</td>
					</tr>
					<tr>
						<td><br /></td>
						<td></td>
					</tr>
					<tr>
						<td class="locationlegend">'.$language[$_SESSION['lang']]["State"].' :</td>
						<td>';
						
						if ($good->state)
						{
							echo $language[$_SESSION['lang']]["Booked"];
						}
						else
						{
							echo $language[$_SESSION['lang']]["Free"];
						}
						
			echo	'
					</tr>
				</table>
			</fieldset>';
	}
	
}
else
{
	
	echo "	<fieldset>
				<legend>".$language[$_SESSION['lang']]['Information']."</legend>
				".$language[$_SESSION['lang']]["NoToObs"]."
			</fieldset>";
	
}

?>



<?php

require('footer.php');

?>
